package com.jcl.recruit.api.mobile.controller;

import com.jcl.core.resp.ApiResponse;
import com.jcl.recruit.core.constants.UserExternalLoginConstant;
import com.jcl.recruit.mobile.service.MobileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @ClassName MobileController
 * @Description TODO
 * @Author yyliu
 * @Date 2018/9/19 9:17
 * @Version 1.0
 **/
@RestController
@RequestMapping("/api/mobile")
public class MobileController {

    @Autowired
    private MobileService mobileService;

    @RequestMapping("/mine/detail")
    public ApiResponse meHome(){
        Map<String, Object> dataMap = mobileService.userDetail(UserExternalLoginConstant.USER_ACCESS_CATEGORY_WECHAT);
        return ApiResponse.success(dataMap);
    }

}
